//
//  NNNewsTableViewCell.m
//  iPhoneX
//
//  Created by liaoyp on 2017/12/11.
//  Copyright © 2017年 liaoyp. All rights reserved.
//

#import "NNNewsTableViewCell.h"

@implementation NNNewsTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(nullable NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _messageLabel = [[UILabel alloc] initWithFrame:self.contentView.bounds];
        _messageLabel.font = [UIFont systemFontOfSize:13];
        _messageLabel.numberOfLines = 0;
        _messageLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_messageLabel];
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    _messageLabel.frame = self.contentView.bounds;

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
